package com.hsylient.javase.chapter03;

import org.junit.Test;

import java.util.Map;
import java.util.TreeMap;

public class TreeMapTest {


    @Test
    public void testMethod() {
        Map<Integer, String> treeMap = new TreeMap<>();
        treeMap.put(3, "Three");
        treeMap.put(1, "One");
        treeMap.put(2, "Two");
        treeMap.put(4, "Four");
        System.out.println(treeMap);
    }
}
